package com.jf.cloud.user.mapper;

import com.jf.cloud.user.dto.UserTravelsCommentDTO;
import com.jf.cloud.user.model.UserTravelsComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 *
 * @author zz
 * @date 2023-11-10 16:10:35
 */
public interface UserTravelsCommentMapper {

    /**
     * 获取列表
     * @return 列表
     */
    List<UserTravelsComment> list(@Param("userTravelsCommentDTO") UserTravelsCommentDTO userTravelsCommentDTO);

    /**
     * 根据id获取
     *
     * @param id id
     * @return 
     */
    UserTravelsComment getById(@Param("id") Long id);

    /**
     * 保存
     * @param userTravelsComment 
     */
    void save(@Param("userTravelsComment") UserTravelsComment userTravelsComment);

    /**
     * 更新
     * @param userTravelsComment 
     */
    void update(@Param("userTravelsComment") UserTravelsComment userTravelsComment);

    /**
     * 根据id删除
     * @param id
     */
    void deleteById(@Param("id") Long id);
}
